import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { StockController } from "src/controller/StockController";
import { UnitController } from "src/controller/UnitController";
import { Goods } from "src/entity/Goods";
import { Stock } from "src/entity/Stock";
import { Unit } from "src/entity/Unit";
import { StockService } from "src/service/StockService";
import { UnitService } from "src/service/UnitService";

@Module({
    imports: [
        TypeOrmModule.forFeature([
            Unit,
            Goods,
            Stock
        ])
    ],
    controllers: [
        UnitController,
        StockController
    ],
    providers: [ 
        UnitService,
        StockService
    ],
    exports: [
        UnitService
    ]
})
export class UnitModule {}
